home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource4
/
264_01
/
ls.doc
< prev
next >
Wrap
Text File
|
1979-12-31
|
1KB
|
29 lines
LS
Purpose
list contents of directory
Syntax
ls [-alrstxzAR1] [path...]
Comments
Ls provides an informative and versatile display of directories and
files. It has several output formats. By default, the entries are
sorted alphabetically by filename; other sortings are available as
options. In the short (default) listing format the names of
subdirectories are shown followed by a '\'. Path can be a drive
specifier, a directory, or a filename.
Options
-a list all files, including hidden and system files, ".", and ".."
-l long listing format (extra information)
-r reverse the order of sorting
-s display size of each file in kilobytes, and total for each directory
-t sort by time/date (latest first)
-x sort by extension
-z sort by size
-A list all files except "." and ".."
-R list subdirectories recursively
-1 display 1 entry per line of short format